package cn.dakaqi.services;

import cn.dakaqi.entities.ActivitySign;
import cn.dakaqi.entities.ActivitySignRecord;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by chunyang on 2016/4/17.
 */
public interface ActivitySignRecordService
{
    ActivitySign save(String param)throws ServiceRuntimeException;
    ActivitySign save(String memberCode,String activityCode,double lng,double lat);
    ActivitySign save(ActivitySignRecord activitySignRecord)throws ServiceRuntimeException;
    void saveMaibao(ActivitySignRecord firstSignRecord,ActivitySignRecord lastSignRecord)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByMember(String memberCode, int pageNumber)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByMember(Long volunteerId, int pageNumber)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByActivity(String activityCode, int pageNumber)throws ServiceRuntimeException;
    Page<ActivitySignRecord> queryByActivity(Long activityId, int pageNumber)throws ServiceRuntimeException;
    List<ActivitySignRecord> queryByMemberAndActivity(String memberCode, String activityCode, int pageNumber)throws ServiceRuntimeException;
    List<ActivitySignRecord> queryByMemberAndActivity(Long volunteerId, Long activityId, int pageNumber)throws ServiceRuntimeException;
    String findFirstRecord(Long volunteerId, Long activityId)throws ServiceRuntimeException;
    String findLastRecord(Long volunteerId, Long activityId)throws ServiceRuntimeException;
}
